import datetime
#import time
last_send_time = '2016-01-04'
day1 =  datetime.datetime.now() 
day2 = datetime.datetime.strptime(last_send_time,'%Y-%m-%d')
past_days = day1-day2
past_days = past_days.days